package com.lyh.common.core.domain.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 用户注册对象
 *
 * @author lyh
 */
@ApiModel(value = "用户注册", description = "用户注册")
@Data
public class ForgetPasswordBody extends LoginBody
{
    /**
     * 用户名
     */
    @ApiModelProperty(example = "用户名")
    @NotNull
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty(example = "密码")
    @NotNull
    private String password;

    /**
     * 确认密码
     */
    @ApiModelProperty(example = "确认密码")
    @NotNull
    private String confirmPassword;

    /**
     * 手机号
     */
    @ApiModelProperty(example = "手机号")
    @NotNull
    private String telephone;

    /**
     * 验证码
     */
    @ApiModelProperty(example = "验证码")
    @NotNull
    private String code;

}
